# -*- coding: utf-8 -*-
from PyQt4                          import QtCore, QtGui
from widgets.configurationWidget    import MainWindowForm
    
class MainFormConfig(QtCore.QObject):
    def __init__(self, menuConfigRelation, parent=None):
        super(MainFormConfig, self).__init__()
        self.parentObj  = parent
        self.dbInst     = None
        if parent:
            self.settings    = parent.settings
        if parent:
            self.dbInst = parent.dbInst
        self.menuConfigRelation = menuConfigRelation
        self.configDial = MainWindowForm(menuConfigRelation=self.menuConfigRelation, dbInst=self.dbInst, parentObj=self.parentObj, settings=self.settings)
        
    def start(self):
        self.configDial.showMaximized()
        self.configDial.removeDict = {}
        return True
        